package awt.awt01;

import java.awt.*;

public class flowLayOutDemo {
    public static void main(String[] args){
        Frame fr=new Frame("你好");

        fr.setLayout(new FlowLayout(FlowLayout.LEFT,20,20));

        for(int i=0;i<100;i++){
            fr.add(new Button("按钮"+i));
        }

//        fr.pack();

//        fr.setBounds(100,100,500,300);


        fr.setLocation(100,100);
        fr.setSize(600,600);

        fr.setVisible(true);
    }
}
